/**
 * Created by lixinkun on 2017/4/20.
 */
'use strict';
import {createStore, applyMiddleware} from 'redux';
import reduces from '../reducers/index';
import thunkMiddleware from 'redux-thunk';

const applyStoreMiddleware = applyMiddleware(thunkMiddleware)(createStore);
//把全部的state映射到store
export const store = applyStoreMiddleware(reduces);